﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true" CodeBehind="USER_TBTeamList.aspx.cs" Inherits="Besture.UI.Admin.CommonModel.AutoMatic.USER_TBTeamList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="mainbox">
        <table>
            <tr>
                <td>
                    <cms:ASPxButton ID="btnSelectAll" runat="server" UseSubmitBehavior="False" AutoPostBack="False" Text="选中全部">
                        <ClientSideEvents Click="function(s, e) { grid.SelectRows(); }" />
                    </cms:ASPxButton>
                </td>
                <td>
                    <cms:ASPxButton ID="btnUnSelectAll" runat="server" UseSubmitBehavior="False" AutoPostBack="False" Text="取消全部">
                        <ClientSideEvents Click="function(s, e) { grid.UnselectRows(); }" />
                    </cms:ASPxButton>
                </td>
                <td>
                    <cms:ASPxButton ID="btnDel" runat="server" UseSubmitBehavior="False" Text="删除选中" OnClick="btnDel_Click">
                        <ClientSideEvents Click="function(s, e) { e.processOnServer= confirm('删除后无法恢复，确定删除选中项吗?'); }" />
                    </cms:ASPxButton>
                </td>
                <td>
                    <cms:ASPxButton ID="btnAdd" runat="server" UseSubmitBehavior="False" Text="添加" OnClick="btnAdd_Click" />
                </td>
            </tr>
        </table>
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%" AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="grid_CustomCallback"
            OnRowDeleting="grid_RowDeleting">
            <Columns>
                <cms:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px" FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选" id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </cms:GridViewCommandColumn>
                <cms:GridViewCommandColumn VisibleIndex="1" Caption="删除" Width="50px" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" ButtonType="Image"
                    FixedStyle="Left">
                    <DeleteButton Visible="true" Image-Url="/Admin/Themes/Images/del.gif" Text="删除">
                    </DeleteButton>
                </cms:GridViewCommandColumn>
                <cms:GridViewDataTextColumn Caption="编辑" VisibleIndex="2" Width="50px" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <a href="USER_TBTeamSet.aspx?id=<%# Eval("ID") %>">
                            <img src="/Admin/Themes/Images/edit.gif" alt="查看编辑" title="查看编辑" /></a>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                 <cms:GridViewDataTextColumn Caption="名称" VisibleIndex="3" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" FieldName="Name" ><Settings AutoFilterCondition="Contains"></Settings></cms:GridViewDataTextColumn> <cms:GridViewDataTextColumn Caption="邮箱" VisibleIndex="4" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" FieldName="Email"  Width="200px"><Settings AutoFilterCondition="Contains"></Settings></cms:GridViewDataTextColumn> <cms:GridViewDataTextColumn Caption="手机" VisibleIndex="6" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" FieldName="phone"  Width="200px"><Settings AutoFilterCondition="Contains"></Settings></cms:GridViewDataTextColumn> <cms:GridViewDataTextColumn Caption="家庭住址" VisibleIndex="10" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" FieldName="address"  Width="150px"><Settings AutoFilterCondition="Contains"></Settings></cms:GridViewDataTextColumn>
            </Columns>
        </cms:ASPxGridView>
    </div>
</asp:Content>
